package com.lucy.nepu.module.topic.lib;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serializable;

@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "nepu_topic_dict")
@EntityListeners(AuditingEntityListener.class)
@ApiModel(value = "纵向课题词典")
public class TopicDict extends BaseEntity implements Serializable {

    @ApiModelProperty("词典编码")
    @Column(name = "code")
    String code;

    /**
     * 纵向类型
     */
    @ApiModelProperty(value = "纵向课题类型",notes = "国家科技重大专项等.")
    @Column(name = "topic_type")
    String topicType;

    /**
     * 纵向级别
     */
    @ApiModelProperty(value = "纵向课题级别",notes = "A/B/C")
    @Column(name = "topic_level")
    String topicLevel;
    /**
     * 纵向课题年工作量
     */
    @ApiModelProperty(value = "年工作量",notes = "年工作量")
    @Column(name = "workload",scale = 2)
    Double workload;

}
